package com.mobile.service.inter;

import com.mobile.service.dto.TaskAllocationRuleDTO;
import com.mobile.service.dto.TaskAllocationRuleQueryDTO;
import com.mobile.util.PageResult;

import java.util.List;
import java.util.Map;

/**
 * 任务分配规则表Service接口
 */
public interface TaskAllocationRuleService {

    /**
     * 新增任务分配规则
     */
    Map<String, Object> addTaskAllocationRule(TaskAllocationRuleDTO dto) throws Exception;

    /**
     * 分页获取任务分配规则列表
     */
    PageResult<TaskAllocationRuleDTO> getTaskAllocationRuleListPage(TaskAllocationRuleQueryDTO queryDTO) throws Exception;

    /**
     * 根据主键获取任务分配规则信息
     */
    TaskAllocationRuleDTO getTaskAllocationRuleById(Integer id) throws Exception;

    /**
     * 修改任务分配规则信息
     */
    Map<String, Object> updateTaskAllocationRule(TaskAllocationRuleDTO dto) throws Exception;

    /**
     * 根据主键删除任务分配规则
     */
    Map<String, Object> removeTaskAllocationRule(Integer id) throws Exception;

    /**
     * 条件查询任务分配规则列表
     */
    List<TaskAllocationRuleDTO> getTaskAllocationRuleList(TaskAllocationRuleDTO dto) throws Exception;

    Map<String, Object> manualAssignment(Integer workOrderId,String designatedStaff,String userCode,String reason);

    void autoAssignTask() throws Exception;
}
